﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace CinemabookingWCFApp.SeatsFolder
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "ISeatsService" in both code and config file together.
    [ServiceContract]
    public interface ISeatsService
    {
        [OperationContract]
        List<TheaterSeat> GetAllSeats();

        [OperationContract]
        List<TheaterSeat> GetSeat(int SeatId);

        [OperationContract]
        List<TheaterSeat> GetAllRows(int Row);

        [OperationContract]
        List<TheaterSeat> GetAllSeatsInRow(int Row);

        [OperationContract]
        List<TheaterSeat> GetAllSeatsInTheater(int TheaterId);

        [OperationContract]
        List<TheaterSeat> GetRowsOnRunTime(int RunTime);

        [OperationContract]
        List<TheaterSeat> GetSeatsOnRowAndRunTime(int RowId, int RunTime);

        [OperationContract]
        void UpdateAvalibility(int SeatId);

        [OperationContract]
        void SetSeatsToAvalible(string PhoneNr);

        [OperationContract]
        void FindBestSeats(int RowId, int RunTime);

    }
}
